<?php

namespace common\models\LinkType;

use Yii;

/**
 * This is the model class for table "link_type".
 *
 * @property string $lid
 * @property string $typename
 * @property string $link_file
 */
class LinkType extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'link_type';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['typename'], 'required'],
            [['typename', 'link_file'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'lid' => Yii::t('app', 'ID'),
            'typename' => Yii::t('app', '类别名称'),
            'link_file' => Yii::t('app', '名称标识'),
        ];
    }
}
